home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / uupc11ys.zip / UUCICO / MODEM.H < prev    next >
C/C++ Source or Header  |  1993-04-10  |  2KB  |  67 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    m o d e m . h                                                   */
  3. /*                                                                    */
  4. /*    Prototypes for high level modem support routines                */
  5. /*--------------------------------------------------------------------*/
  6.  
  7. /*
  8.  *    $Id: MODEM.H 1.5 1993/04/11 00:36:13 ahd Exp $
  9.  *
  10.  *    Revision history:
  11.  *    $Log: MODEM.H $
  12.  * Revision 1.5  1993/04/11  00:36:13  ahd
  13.  * Global edits for year, TEXT, etc.
  14.  *
  15.  * Revision 1.4  1992/11/28  19:53:22  ahd
  16.  * Make callin time parameter const
  17.  *
  18.  * Revision 1.3  1992/11/18  03:50:17  ahd
  19.  * Move check of call window to avoid premature lock file overhead
  20.  *
  21.  */
  22.  
  23. /*--------------------------------------------------------------------*/
  24. /*                           Defined types                            */
  25. /*--------------------------------------------------------------------*/
  26.  
  27. typedef enum {
  28.    MODEM_FIXEDSPEED,
  29.    MODEM_VARIABLEPACKET,
  30.    MODEM_LARGEPACKET,
  31.    MODEM_DIRECT,
  32.    MODEM_CD,
  33.    MODEM_LAST
  34.    } MODEM_FLAGS;
  35.  
  36. /*--------------------------------------------------------------------*/
  37. /*                        Function prototypes                         */
  38. /*--------------------------------------------------------------------*/
  39.  
  40. CONN_STATE callup(void );
  41.  
  42. CONN_STATE callin( const time_t exit_time );
  43.  
  44. CONN_STATE callhot( const BPS speed );
  45.  
  46. void slowwrite( char *s, int len);
  47.  
  48. void shutdown( void );
  49.  
  50. INTEGER  GetGPacket( INTEGER maxvalue, const char protocol );
  51.  
  52. INTEGER  GetGWindow( INTEGER maxvalue, const char protocol );
  53.  
  54.  
  55. /*--------------------------------------------------------------------*/
  56. /*                       Environment variables                        */
  57. /*--------------------------------------------------------------------*/
  58.  
  59. extern INTEGER M_gPacketTimeout;
  60. extern INTEGER M_fPacketTimeout;
  61. extern INTEGER M_fPacketSize;
  62. extern INTEGER M_PortTimeout;
  63. extern INTEGER M_MaxErr;
  64. extern INTEGER M_xfer_bufsize;
  65. extern boolean bmodemflag[MODEM_LAST];
  66. extern char *device;
  67.